<form name="frmModal" method="post" action="proc/admin/detil_prestasipelanggaran.php">
<input type="hidden" value="deprepel-add" name="proc" />
<h2 class="dialog_title"><span>Add Detil Reward/Punishment</span></h2>
<div class="dialog_content">
<div style="border-bottom: 1px solid #CCC">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
	<tr>
		<td align="right" width="36%">ID Detil R/P :</td>
		<td width="29%"><input type="text" name="deprepel_id" maxlength="5"></td>
		<td width="35%" align="left" valign="middle">
			<!-- <input type="checkbox" name="rnp_id_generate" title="auto generate" 
				onchange="var fr = $(this).getParent('form'); 
							fr.rnp_id.set('disabled', this.checked).set('value', this.checked? 'auto generate' : '')"> -->
		</td>
	</tr>
	<tr>
		<td align="right">Nama :</td>
		<td colspan="2"><input type="text" name="deprepel_nama" maxlength="30"></td>
	</tr>
	<tr>
		<td align="right">Tingkat :</td>
		<td colspan="2"><input type="text" name="deprepel_tingkat" maxlength="45"></td>
	</tr>
	<tr>
	  <td align="right">Tipe : </td>
	  <td colspan="2">
      <select name="prepel_jenis" onchange="$('prepel_jenis_'+this.value).show(); $('prepel_jenis_'+(this.value==1? 2:1)).hide()">
      	<option value="1">Prestasi</option>
        <option value="2">Pelanggaran</option>
      </select></td>
	  </tr>
	<tr>
	  <td align="right">Bidang :</td>
	  <td colspan="2">
	    <select id="prepel_jenis_1" name="prepel_id[1]">
	      <?php $acc = perpel_select2(false, "ACHIEV_JENIS='prestasi'", "ACHIEV_BIDANG ASC") ?>
	      <?php while ($row = mysql_fetch_assoc($acc)): ?>
	      <option value="<?php echo $row['ACHIEV_ID']?>"><?php echo $row['ACHIEV_BIDANG']?></option>
	      <?php endwhile;?>
	      </select>
        <select id="prepel_jenis_2" name="prepel_id[2]" style="display:none">
	      <?php $acc = perpel_select2(false, "ACHIEV_JENIS='pelanggaran'", "ACHIEV_BIDANG ASC") ?>
	      <?php while ($row = mysql_fetch_assoc($acc)): ?>
	      <option value="<?php echo $row['ACHIEV_ID']?>"><?php echo $row['ACHIEV_BIDANG']?></option>
	      <?php endwhile;?>
	      </select>
	    </td>
	  </tr>
</table>
</div>
<div class="dialog_buttons"><input type="button" value="Save"
	name="save" onclick="doSave($(this).getParent('form')); FBModal_hide()" />
<input type="button" value="Close" name="close" onclick="FBModal_hide()" />
</div>
</div>
</form>